home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / gs261src.zip / gdevpcl.h < prev    next >
C/C++ Source or Header  |  1993-05-13  |  2KB  |  43 lines

  1. /* Copyright (C) 1992 Aladdin Enterprises.  All rights reserved.
  2.  
  3. This file is part of Ghostscript.
  4.  
  5. Ghostscript is distributed in the hope that it will be useful, but
  6. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. to anyone for the consequences of using it or for whether it serves any
  8. particular purpose or works at all, unless he says so in writing.  Refer
  9. to the Ghostscript General Public License for full details.
  10.  
  11. Everyone is granted permission to copy, modify and redistribute
  12. Ghostscript, but only under the conditions described in the Ghostscript
  13. General Public License.  A copy of this license is supposed to have been
  14. given to you along with Ghostscript so you can know your rights and
  15. responsibilities.  It should be in a file named COPYING.  Among other
  16. things, the copyright notice and this notice must be preserved on all
  17. copies.  */
  18.  
  19. /* gdevpcl.h */
  20. /* Interface to PCL utilities for Ghostscript printer drivers */
  21. /* Requires gdevprn.h */
  22.  
  23. /* Define the PCL paper size codes. */
  24. #define PAPER_SIZE_LETTER 2
  25. #define PAPER_SIZE_LEGAL 3
  26. #define PAPER_SIZE_A4 26
  27. #define PAPER_SIZE_A3 27
  28.  
  29. /* Get the paper size code, based on width and height. */
  30. extern int gdev_pcl_paper_size(P1(gx_device *));
  31.  
  32. /* Get initial matrix, adjusting for margins. */
  33. extern dev_proc_get_initial_matrix(gdev_pcl_get_initial_matrix);
  34.  
  35. /* Color mapping procedures for 3-bit-per-pixel RGB printers */
  36. extern dev_proc_map_rgb_color(gdev_pcl_3bit_map_rgb_color);
  37. extern dev_proc_map_color_rgb(gdev_pcl_3bit_map_color_rgb);
  38.  
  39. /* Row compression routines */
  40. typedef ulong word;
  41. extern int gdev_pcl_mode2compress(P3(const word *row, const word *end_row, char *compressed));
  42. extern int gdev_pcl_mode3compress(P4(int bytecount, const char *current, char *previous, char *compressed));
  43.